import Audio from '../compontents/audio'
// import { actionAdd, actionSub } from '../actionCreator/Action'
import { connect } from 'react-redux'


function mapStateToProps(state){
	return {
		count: state.audioReducer.count													
	}
}
function mapDispatchToProps(dispatch){
	return {
		countAdd: () => dispatch({
            type: 'AddCount',
            value: 1
        }),
		countSub: () => dispatch({
            type: 'SubCount',
            value: 1
        })
	}
}


const AudioContro = connect(
	mapStateToProps,
	mapDispatchToProps
)(Audio);

export default AudioContro;

